package com.beiding.dao;

import com.beiding.pojo.order.Order;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface OrderDao extends MongoRepository<Order,String>, ResourceOperations<Order>{

    List<Order> getNonPayment(String name);
    List<Order> getPayed(String name);
    List<Order> getEvaluate(String name);
    List<Order> getToDoOrder(String name);


    //获取一个不敏感的订单.其中只包含一些必要且不隐私的数据

    Order getInsensitive(String id);


    //修改默认的房间持有者名称
    default String holderIdFieldName() {
        return "tenant";
    }

}
